<extend name="Public/base"/>
<block name="body">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>代理列表</h5>

                </div>
                <div class="ibox-content">
                    <div class="row">
                        <form action="" method="get">

                        <div class="col-sm-3" >

                            <div class="input-group"  >

                                <input type="text" placeholder="请输入代理昵称" class="input-sm form-control" name="search"> <span class="input-group-btn" >                   <input type="submit" class="btn btn-sm btn-primary" vale="搜索">
                                        </span>&nbsp;&nbsp;&nbsp;&nbsp;
                                <span class="input-group-btn" >
                                    <button type="button" onClick="window.location.href='{:U('add')}'" class="btn btn-sm btn-primary" style="background-color: #00b7ee"> 添加代理</button> </span>

                            </div>
                        </div>

                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped" align="center">

                            <tr align="center" class="font-bold">
                                <td>序号</td>
                                <td>代理名称</td>
                                <td>所属分组</td>
                                <td>手机号</td>
                                <td>微信号</td>
                                <td>邮箱号</td>
                                <td>房卡数</td>
                                <td>金币数</td>
                                <td>佣金数</td>
                                <td>状态</td>
                                <td>代理号</td>
                                <td>操作</td>
                            </tr>

                            <tbody>
                            <volist name="member" id="member">
                                <tr align="center">
                                    <td>{$member.id}</td>
                                    <td>{$member.username}</td>
                                    <td>{$member.group_name}</td>
                                    <td>{$member.phone}</td>
                                    <td>{$member.wechat}</td>
                                    <td>{$member.email}</td>
                                    <td>{$member.jewels}</td>
                                    <td>{$member.money}</td>
                                    <td>{$member.commission}</td>
                                    <td>
                                        <if condition="member.status eq 0">
                                            正常
                                        <else/>
                                            禁用
                                        </if>
                                    </td>
                                    <td>{$member.agentid}</td>
                                    <td>
                                        <a href="{:U('update',array('id'=>$member['id']))}"><i class="fa fa-check text-navy">编辑</i></a>
                                        <a href="{:U('del',array('id'=>$member['id']))}" onclick="return del(this,{$member['id']});"><i class="fa fa-times" style="color:red">删除</i></a>
                                    </td>
                                </tr>
                            </volist>

                            </tbody>
                        </table>
                    </div>

                    <div class="_page">{$_page}</div>

                </div>
            </div>
        </div>

    </div>
    <script>

    </script>
</block>